package com.hao.rule;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * TODO
 *
 * @author 97472
 * @version 1.0
 * @date 2022/1/11 14:36
 */
@Configuration
public class MySelfRule {

    @Bean
    public IRule getRule(){
        return new RandomRule();
    }
}
